#include "Floor.h"


Floor::Floor(GameState *gameState) : PhysicalObject(gameState)
{
	getBodyDef()->type = b2_staticBody;
	b2FixtureDef *fixDef = new b2FixtureDef;
	b2PolygonShape *shape = new b2PolygonShape;
	shape->SetAsBox(40, 10);
	fixDef->shape = shape;
	fixDef->density = 2.0f;
	fixDef->restitution = 0.2f;
	fixDef->friction = 1.0f;
	addFixtureDef(fixDef);
	setRotation(0.0f);

	setColor(0.7f, 0.4f, 0.4f);

	addProperty("floor");
}


Floor::~Floor(void)
{
}
